package com.hy.controller;

import com.hy.service.UserService;
import com.hy.service.impl.UserServiceImpl;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class UserController {
    private UserService userService = new UserServiceImpl();
    public void selectUser(HttpServletRequest request, HttpServletResponse response) throws Exception {
        userService.selectUser(request,response);
    }

    public void updateUser(HttpServletRequest request, HttpServletResponse response) throws Exception {
        userService.updateUser(request,response);
    }

    public void queryInterest(HttpServletRequest request, HttpServletResponse response) throws Exception {
        userService.countInterest(request,response);
    }

    public void queryMyInterestUser(HttpServletRequest request, HttpServletResponse response) throws Exception {
        userService.listMyInterestUser(request,response);
    }

    public void queryFollowMeUser(HttpServletRequest request, HttpServletResponse response) throws Exception {
        userService.listFollowMeUser(request,response);
    }

    public void modifyFollowTombstone(HttpServletRequest request, HttpServletResponse response) throws Exception {
        userService.updateFollowTombstone(request,response);
    }

    public void addFollow(HttpServletRequest request, HttpServletResponse response) throws Exception {
        userService.saveFollow(request,response);
    }

    public void queryMutualAttention(HttpServletRequest request, HttpServletResponse response) throws Exception {
        userService.mutualOrNotAttention(request,response);
    }

}
